class static_mesh : public bsp_object
{
public:
mesh *objmesh;
static_mesh()
{ type=TYPE_STATIC_MESH; objmesh=new mesh; };
mesh *ray_intersect(vector& ro,vector& rd,vector& ip,float&
dist,int &facenum,float rad=0.0f);
int ray_intersect_test(vector& ro,vector& rd,float rad);
int message(vector& p,float rad,int msg,int param,void *data);
virtual ~static_mesh()
{ if (objmesh) delete objmesh; };
};
Member | Type | Description |
---|---|---|
mesh | objmesh * | mesh with some bsp faces |
ray_intersect, ray_intersect_test, message
This class implements the bsp faces in a bsp leaf node. All leaf nodes have a static_object as their first bsp_node element in the elem linked list. It is just like a Fly3D plug-in object and in the only plug-in object already included in the engine dll.